package com.craterhill.java.ccp.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ccp.common.beans.StudyType;
import com.craterhill.java.ccp.dao.StudyTypeDao;

@Repository
public class StudyTypeDaoImpl extends AbstractDao<StudyType> implements StudyTypeDao {
	@Autowired
	public StudyTypeDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	@Override
	public StudyType find(int recordId) {
		return null;
	}

	@Override
	public List<StudyType> findAll() {
		return super.findMultipleObject(FIND_ALL_STUDYTYPE, new StudyTypeExtractor());
	}

}
